import Base from '../utils/base.js'
class Hot extends Base {
  constructor(){
    super();
  }
 

  getHotData(page,size,callBacks) {
    this.request({
      url: '/rank',
      data: {
        page: page,
        size: size
      },
      callback: function(res) {
        if(res.status === 1) {
          typeof callBacks === 'function' ? callBacks(res.data) : '';
        }
      }
    })
  }
}

export default Hot;